/*
 * Created by SharpDevelop.
 * User: Heikki
 * Date: 8.11.2008
 * Time: 23:14
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace notebooklet
{
	/// <summary>
	/// Description of MainForm.
	/// </summary>
	public partial class MainForm : Form
	{
		public MainForm()
		{
			//
			// The InitializeComponent() call is required for Windows Forms designer support.
			//
			InitializeComponent();
			
			//
			// TODO: Add constructor code after the InitializeComponent() call.
			//
		}
		
		void Button1Click(object sender, EventArgs e)
		{
			Client client = new Client();
			string response = client.Send(noteBox.Text);
			System.Windows.Forms.MessageBox.Show(response, "Server response:");
			noteBox.Clear();
		}
		
		void ExitToolStripMenuItemClick(object sender, EventArgs e)
		{
			Close();
		}
		
		void MainFormLoad(object sender, EventArgs e)
		{
			statusLabel.Text = "Notebooklet win32/.NET2.0 client version " + Client.version;
		}
		
		
		void MenuStrip1ItemClicked(object sender, ToolStripItemClickedEventArgs e)
		{
			
		}
	}
}
